﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace Dot5Demo.Controls
{
    internal class SpyTree : UserControl
    {
        public object DataSource;
        public XTreeNode SelectedNode;

        public SpyTree()
        {
            InitializeComponent();
        }

#pragma warning disable CS0067
        public event EventHandler<MouseEventArgs> NodeMouseClicked;

        public event EventHandler<MouseEventArgs> NodeMouseDoubleClicked;

        public event EventHandler<NodeStyleEventArgs> NodeStyle;
#pragma warning restore CS0067

        private CoreTree CTree { get; set; }
        private ScrollBar vScrollBar { get; set; }

        internal void DataBind()
        {
            throw new NotImplementedException();
        }

        internal void ExpandAll()
        {
            throw new NotImplementedException();
        }

        internal Point GetCurrentMousePoint()
        {
            throw new NotImplementedException();
        }

        private void InitializeComponent()
        {
            vScrollBar = new VScrollBar()
            {
                Width = 15,
                Dock = DockStyle.Left,
                Visible = false,
            };
            this.Controls.Add(vScrollBar);

            CTree = new CoreTree()
            {
                Dock = DockStyle.Fill,
                BackColor = Color.Red,
                Visible = true,
            };
            this.Controls.Add(CTree);
            this.vScrollBar.Visible = false;
        }
    }
}